package nicg.st.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author GeChen
 * @Description
 * @date 2019/11/3 22:44
 */
@ToString
@Getter
@Setter
@NoArgsConstructor
public class IndicatorTree {
    private Integer id;
    private String name;
    private String path;
    private Integer level;
    private double relativeWeight;
    private double absoluteWeight;
    private double maxValue;
    private double value1;      // 叶子节点：用户输入值
    private double value2;      // 非叶子节点：存储当前层的指标的得分
    private String remark;
    private Integer paramId;
    private List<IndicatorTree> children;
    
    

    public IndicatorTree() {
	}

	public IndicatorTree(Integer id, String name, String path, Integer level, double relativeWeight, double absoluteWeight, String remark, Integer paramId) {
        this.id = id;
        this.name = name;
        this.path = path;
        this.level = level;
        this.relativeWeight = relativeWeight;
        this.absoluteWeight = absoluteWeight;
//        this.maxValue = maxValue;
        this.remark = remark;
        this.paramId = paramId;
    }

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public double getRelativeWeight() {
		return relativeWeight;
	}

	public void setRelativeWeight(double relativeWeight) {
		this.relativeWeight = relativeWeight;
	}

	public double getAbsoluteWeight() {
		return absoluteWeight;
	}

	public void setAbsoluteWeight(double absoluteWeight) {
		this.absoluteWeight = absoluteWeight;
	}

	public double getValue1() {
		return value1;
	}

	public void setValue1(double value1) {
		this.value1 = value1;
	}

	public double getValue2() {
		return value2;
	}

	public void setValue2(double value2) {
		this.value2 = value2;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getParamId() {
		return paramId;
	}

	public void setParamId(Integer paramId) {
		this.paramId = paramId;
	}

	public List<IndicatorTree> getChildren() {
		return children;
	}

	public void setChildren(List<IndicatorTree> children) {
		this.children = children;
	}

	public double getMaxValue() {
		return maxValue;
	}

	public void setMaxValue(double maxValue) {
		this.maxValue = maxValue;
	}

	@Override
	public String toString() {
		return "IndicatorTree [id=" + id + ", name=" + name + ", path=" + path + ", level=" + level
				+ ", relativeWeight=" + relativeWeight + ", absoluteWeight=" + absoluteWeight + ", maxValue=" + maxValue
				+ ", value1=" + value1 + ", value2=" + value2 + ", remark=" + remark + ", paramId=" + paramId
				+ ", children=" + children + "]";
	}

    
}